﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using NetTopologySuite.Geometries;

namespace housingsafety.server.Entities.DataModels
{
    [Table("zm_buildings")]
    public class ZmBuildings : Repository.IEntity
    {
        [Column("id")]
        [StringLength(50)]
        public string? Id { get; set; }

        [Column("xzqdm")]
        [StringLength(6)]
        public string? Xzqdm { get; set; }

        [Column("xzq")]
        [StringLength(30)]
        public string? Xzq { get; set; }

        [Column("fwbh")]
        [StringLength(50)]
        public string? Fwbh { get; set; }

        [Column("zzmj")]
        public decimal? Zzmj { get; set; }

        [Column("towndm")]
        [StringLength(50)]
        public string? Towndm { get; set; }

        //[Column("geom")]
        //[StringLength(255)]
        //public string? Geom { get; set; }

        [Column("yhfwbh")]
        [StringLength(36)]
        public string? Yhfwbh { get; set; }

        [Column("address")]
        [StringLength(500)]
        public string? Address { get; set; }

        [Column("cs")]
        public int? Cs { get; set; }

        [Column("villagedm")]
        [StringLength(255)]
        public string? Villagedm { get; set; }

        [Column("build_time")]
        [StringLength(4)]
        public string? BuildTime { get; set; }

        [Column("aqyhqk")]
        [StringLength(50)]
        public string? Aqyhqk { get; set; }

        [Column("bdlx")]
        [StringLength(255)]
        public string? Bdlx { get; set; }

        [Column("bdtime")]
        [StringLength(255)]
        public string? Bdtime { get; set; }

        [Column("fwlx")]
        [StringLength(255)]
        public string? Fwlx { get; set; }

        [Column("hzxm")]
        [StringLength(255)]
        public string? Hzxm { get; set; }

        [Column("village")]
        [StringLength(255)]
        public string? Village { get; set; }

        [Column("town")]
        [StringLength(255)]
        public string? Town { get; set; }

        [Column("jzrks")]
        public int? Jzrks { get; set; }

        [Column("zzrs")]
        public int? Zzrs { get; set; }

        [Column("jzfjs")]
        public int? Jzfjs { get; set; }

        [Column("fjsl")]
        public int? Fjsl { get; set; }

        [Column("jzscxyaqcksl")]
        public int? Jzscxyaqcksl { get; set; }

        [Column("jzscmj")]
        public decimal? Jzscmj { get; set; }

        [Column("jzszlwxdlgybjqs")]
        public int? Jzszlwxdlgybjqs { get; set; }

        [Column("jzsyjyplmhxts")]
        public int? Jzsyjyplmhxts { get; set; }

        [Column("jzxyssltsl")]
        public int? Jzxyssltsl { get; set; }

        [Column("pczt")]
        [StringLength(255)]
        public string? Pczt { get; set; }


        //[NotMapped]
        [Column("CreateOn")]
        public DateTime CreateOn { get; set; }

        [NotMapped]
        public DateTime? ModifiedOn { get; set; }

        [NotMapped]
        public DateTime? DeleteOn { get; set; }

        [NotMapped]
        public short? IsDelete { get; set; }
    }
}
